package com.behome.netty.netty_A.handler;

import com.behome.netty.netty_A.bean.ProtocolAPacket;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author bh_ljy
 * @description: 附录A抽象处理器
 * @date: 2024/3/28 10:40
 */
public abstract class BusinessAHandlerBase {

    protected ChannelHandlerContext ctx;
    protected ProtocolAPacket msg;
    // 协议类型 0 内网 1公网
    protected int type;

    public BusinessAHandlerBase(ChannelHandlerContext ctx, ProtocolAPacket msg,int type) {
        this.ctx = ctx;
        this.msg = msg;
        this.type = type;
    }

    public abstract void resolve() throws Exception;
}
